package com.ayn.aynsystem.controller;


import com.ayn.aynsystem.entity.OrmUser;
import com.ayn.aynsystem.service.IOrmUserService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * Spring Boot Demo Orm 系列示例表 前端控制器
 * </p>
 *
 * @author zxg
 * @since 2022-06-09
 */
@RestController
@RequestMapping("/orm-user")
public class OrmUserController {
    @Resource
    private IOrmUserService  ormUserService;

    @PostMapping("/add")
    public Boolean addEntity(@RequestBody OrmUser entity) {
        ormUserService.save(entity);
        return true;
    }
}

